var http = require('http');
var fs = require ('fs');
http.createServer(function(req,res){
  //if(req.connection.encrypted){

    fs.readFile('index.html', function(err, file){
        res.writeHead(200, {
        "Content-Type": "text/html"
        });
    res.write(file);
    res.end();
    })
  //}
  //else {
  //  res.writeHead(200, {"Content-Type": "text/html"});
  //  res.write('Error: HTTPS Required');
  //  res.end();
  //}
}).listen(process.env.PORT || 1337);

